//
//  JYLabel.m
//  JYFarm
//
//  Created by 花花 on 2017/10/19.
//  Copyright © 2017年 花花. All rights reserved.
//

#import "JYLabel.h"

@implementation JYLabel
- (void)setText:(NSString *)text{

    
    
    NSMutableAttributedString *attributedStr = [[NSMutableAttributedString alloc]initWithString:text];

    NSString *money = @"66.00元";

    NSDictionary *attributes =  @{
                                  NSFontAttributeName:kFont(13),
                                  NSForegroundColorAttributeName:[UIColor colorWithRed:0.94f green:0.13f blue:0.42f alpha:1.00f]
                                  };
    NSAttributedString *str = [[NSAttributedString alloc]initWithString:money attributes:attributes];
    [attributedStr appendAttributedString:str];
    
    
    self.attributedText = attributedStr;
    

}

@end
